package service

import "bc/dao"

type bj struct {

}

func (t *bj)Create(data map[string]interface{}) error {
	return dao.BjDao.Create(data)
}
func (t *bj)Delete(w map[string]interface{}) error {
	return dao.BjDao.Delete(w)
}
func (t *bj)Update(w map[string]interface{},d map[string]interface{}) error {
	return dao.BjDao.Update(w,d)
}
func (t *bj)Find(w map[string]interface{}, s map[string]interface{}, page int,pageSize int) ([]*dao.BjAndPlatform,int,error){
	return dao.BjDao.Find(w,s,page,pageSize)
}
func (t *bj)First(bj_id int) (error, *dao.Bj) {
	return dao.BjDao.First(bj_id)
}

var Bj = &bj{}
